package com.qf.lanzhou.shop.api.controller;

import com.qf.lanzhou.shop.api.service.CommentService;
import com.qf.lanzhou.shop.pojo.entity.Comment;
import com.qf.lanzhou.shop.pojo.vo.BaseRespVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Nerly
 * @Date 2021/1/11 10:27
 * @JDK 1.8
 * @Version 1.0
 */
@RestController
@Api(tags = "反馈意见")
public class CommentController {
    @Autowired
    private CommentService commentService;

    @PostMapping("/commentSubmit")
    @ApiOperation(value = "提交反馈意见")
    public void commentSubmit(Comment comment) {
        System.out.println(comment);
        commentService.insertComment(comment);
    }
}
